﻿using System.Configuration;

namespace Rogan.Utility.Common
{
    public class CacheConfiguration : ConfigurationSection
    {
        private bool? _enable;

        [ConfigurationProperty("enable")]
        public bool Enable
        {
            get
            {
                if (_enable.HasValue)
                {
                    return _enable.Value;
                }
                return base["enable"] != null && (bool)base["enable"];
            }
            set
            {
                _enable = value;
            }
        }
    }
}
